package com.sdkj.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sdkj.pojo.Checkgroup;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CheckgroupMapper extends BaseMapper<Checkgroup> {

    @Select("SELECT * FROM checkgroup WHERE id IN(SELECT checkgroup_id FROM setmealcheckgroup WHERE setmeal_id=#{id})")
    public List<Checkgroup> getGroupBySid(@Param("id") Integer id);

}
